﻿#region Usings

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;

#endregion

namespace xConnected.Core.Model
{
    [Serializable]
    [DataContract]
    [DisplayColumn("IsRead")]
    public partial class MessageCompanyUser : PersistentEntity
    {
        public MessageCompanyUser()
        {
            IsRead = false;
            IsStarred = false;
            IsSender = false;
            IsDeleted = false;
        }

        [DataMember]
        public virtual bool IsRead { get; set; }

        [DataMember]
        public virtual bool IsStarred { get; set; }

        [DataMember]
        public virtual bool IsSender { get; set; }

        [DataMember]
        public virtual bool IsDeleted { get; set; }

        [DataMember]
        public virtual int MessageId { get; set; }

        [DataMember]
        public virtual Message Message { get; set; }

        [DataMember]
        public virtual int CompanyProfileId { get; set; }
        
        [DataMember]
        public virtual CompanyProfile CompanyProfile { get; set; }

        [DataMember]
        public virtual int MessageFolderId { get; set; }

        [DataMember]
        public virtual MessageFolder MessageFolder { get; set; }

        [DataMember]
        public string Sender { get; set; }

        [DataMember]
        public List<string> Receivers { get; set; }
    }
}
